<template>
  <view class="payPage">
    <view class="head" :style="[{ height: customBar + 'px' }]">
      <u-navbar
        title="微信支付"
        :autoBack="true"
        :titleStyle="{ fontSize: '34rpx', fontWeight: '500' }"></u-navbar>
    </view>
    <view class="points">
      <image src="../../static/reservation/up.png" mode="" class="img"></image>
    </view>
    <view class="priceDetail">
      <view class="title">
        应付金额
        <view class="right">￥349.99</view>
      </view>
      <view class="list">
        <view>创建时间</view>
        <view>2024.10.29</view>
      </view>
      <view class="list">
        <view>订单号</view>
        <view>1278376874</view>
      </view>
      <view class="list">
        <view>商户订单号</view>
        <view>13132434324</view>
      </view>
    </view>

    <view class="sure" @click="handleDeduction">抵扣</view>
  </view>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  data() {
    return {
      customBar: 88,
      jfVal: "",
    };
  },
  computed: mapGetters(["isLogin", "uid", "userInfo"]),
  onLoad() {},
  methods: {
    groupChange(n) {
      console.log("groupChange", n);
    },
	handleDeduction(){
		uni.navigateTo({
		  url: "/pages/reservation/success",
		});
	}
  },
};
</script>

<style lang="scss">
.payPage {
  height: 100%;
  min-height: 100vh;
  font-family: PingFang SC;
  background: #fff;
  padding: 0 32rpx;
  padding-bottom: calc(env(safe-area-inset-bottom) / 2);
  box-sizing: border-box;
  .points {
    width: 100%;

    
    padding: 30rpx 20rpx;
    box-sizing: border-box;
    .img {
      width: 320rpx;
	  height: 100rpx;
	  margin: 21rpx auto;
	  display: block;
    }
  }
  .priceDetail {
    width: 100%;
    background: #ffffff;

    margin-top: 20rpx;
    padding: 30rpx;
    box-sizing: border-box;
    .title {
      font-size: 28rpx;
      border-bottom: 1px #e6e5e5 solid;
      padding-bottom: 18rpx;
      display: flex;
      justify-content: space-between;
      .right {
        color: #fd463e;
        font-size: 34rpx;
      }
    }
    .u-radio-group--row {
      display: block;
    }
    .list {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 28rpx;
      margin-top: 26rpx;
      .name {
        display: flex;
        align-items: center;
      }
      .img {
        width: 52rpx;
        margin-right: 16rpx;
      }
    }
  }

  .sure {
    width: 100%;
    height: 88rpx;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 34rpx;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #a3c616;
    box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(163, 198, 22, 0.3);
    border-radius: 24rpx;
    margin-top: 140rpx;
  }
}
</style>
